<html>
<head>
<style type="text/css">
.r_content {
margin: 5px 0 0 0;
color: #00A;
overflow: hidden;
}
.TextContent {
line-height: 1.6;
}
.TextContent div.ref {
border: 1px solid #ddd;
margin: 0 0 10px 0;
padding: 2px;
font-size: 9pt;
background: #FFFEC8;
}
.TextContent div.ref h4 {
margin: 0;
padding: 1px 3px;
background: #CC9966;
color: #fff;
font-size: 10pt;
}
.TextContent div.ref h4:before{
content:open-quote;
}
.TextContent div.ref h4:after{
content:close-quote;
}
</style>
<script type="text/javascript" src="js/jquery/jquery-2.1.0.js"></script>
</head>
<body>
<div class="customers">
	<table class="customers-info-list" border='1'>
		<caption>客户基本信息</caption>
			<tr>
				<th>客户编号</th>
				<th>客户姓名</th>
				<th>客户性别</th>
				<th>客户年龄</th>
				<th>客户身份证</th>
				<th>客户手机号</th>
				<th>客户地址</th>
				<th>客户类型</th>
				<th>业务员</th>
				<th>操作</th>
			</tr>
	</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$.post("/action/getcustomer",
		{
			operatorid:"admin"
		},
		
		
		
		
		function(customers,status){
			       alert("数据：" + customers + "\n状态：" + status);
					$.each(customers,function(customerindex,customer){
						customerinfo="<tr class=customer_"+customer.id+">"
						+"<td>"+customer.id+"</td>"
						+"<td>"+customer.name+"</td>"
						+"<td>"+customer.sex+"</td>"
						+"<td>"+customer.age+"</td>"
						+"<td>"+customer.identityCard+"</td>"
						+"<td>"+customer.mobilePhone+"</td>"
						+"<td>"+customer.address+"</td>"
						+"<td>"+customer.customerType+"</td>"
						+"<td>"+customer.operatorName+"</td>"
						+"<td>"
							+"<ul>"
								+"<li><a href='/action/updatecustomer'>修改信息</a></li>"
								+"<li><a href='/action/addfllowcase'>添加跟进记录</a><li>"
								+"<li><a href='/action/addtraderlog'>添加交易记录</a><li>"
							+"</ul>"
						+"</td>"
						+"</tr>";
						$(".customers-info-list").append(customerinfo);
					});
		}
		
		
		
		
	);
});
</script>
</body>
</html>